{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\mjoshi2\Desktop\Builtin safeguard\Data\II\replication log.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 9 Aug 2016, 14:42:45
{txt}
{com}. use "C:\Users\mjoshi2\Desktop\Builtin safeguard\Data\II\Replication Data for Built-in Safeguards.dta", replace
{txt}
{com}. 
. 
. //Labeling Variables
. label variable agg_imp_rate_woe "Accord Implementaiton Rate (0-100)"
{txt}
{com}. label variable powtran_implem "Powershairng government (0-3)"
{txt}
{com}. label variable dispute_implem "Dispute Resolution Mechanism (0-3)"
{txt}
{com}. label variable verify_implem "Verification Mechanism (0-3)"
{txt}
{com}. label variable donor_implem  "Donor Support (0-3)"
{txt}
{com}. label variable unpkf_implem "United Nations Peacekeeping(0-3)"
{txt}
{com}. label variable roa_implem  "Review of Agreement (0-3)"
{txt}
{com}. label variable total_prov_woe "Number of Provisions"
{txt}
{com}. label variable ex_constrain5_7 "Executive Constraints (0,1)"
{txt}
{com}. label variable conflict_type "Conflict Type (0,1)"
{txt}
{com}. label variable infant_rate "Infant Mortality Rate"
{txt}
{com}. label variable gdppc_currus_1000 "GDP Per Capita x 1000 (2005 USD)"
{txt}
{com}. label variable year_count "Peace Implementation Year (1-10)"
{txt}
{com}. label variable con_conflict "Post Accord Conflict"
{txt}
{com}. label variable war_dur "War Duration (months)"
{txt}
{com}. label variable total_dead "Total Dead"
{txt}
{com}. label variable meanprov "Above Average Provisions"
{txt}
{com}. 
. //Define Data as Time Series Data
. xtset caseid year_count
{res}{txt}{col 8}panel variable:  {res}caseid (unbalanced)
{txt}{col 9}time variable:  {res}{col 25}year_count, 1 to 10
{txt}{col 17}delta:  {res}1 unit
{txt}
{com}. 
. 
. //Summary Stat Table 1
. sum meanprov agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  total_prov_woe ex_constrain5_7  conflict_type infant_rate gdppc_currus_1000    year_count   

{txt}    Variable {c |}        Obs        Mean    Std. Dev.       Min        Max
{hline 13}{c +}{hline 57}
{space 4}meanprov {c |}{res}        323   -.1362247    6.428268  -13.47059   18.52941
{txt}agg_imp_ra~e {c |}{res}        323    63.47181    22.13933   2.222222        100
{txt}verify_imp~m {c |}{res}        323    1.990712    1.303331          0          3
{txt}powtran_im~m {c |}{res}        323    1.089783    1.307404          0          3
{txt}dispute_im~m {c |}{res}        323    1.368421    1.386669          0          3
{txt}{hline 13}{c +}{hline 57}
donor_implem {c |}{res}        323    1.281734    1.341366          0          3
{txt}unpkf_implem {c |}{res}        323    .9628483    1.373614          0          3
{txt}{space 2}roa_implem {c |}{res}        323     .625387    1.155156          0          3
{txt}total_prov~e {c |}{res}        323    17.33437    6.428268          4         36
{txt}ex_constra~7 {c |}{res}        323    .5634675     .496725          0          1
{txt}{hline 13}{c +}{hline 57}
conflict_t~e {c |}{res}        323    .4551084    .4987533          0          1
{txt}{space 1}infant_rate {c |}{res}        307    65.95049    39.23846        4.9      148.1
{txt}gdppc_c~1000 {c |}{res}        304    2.266342    5.827232   .0690512    46.3302
{txt}{space 2}year_count {c |}{res}        322    5.375776    2.862112          1         10
{txt}
{com}. 
. // Table 2 Correlation Matrix
. pwcorr agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  meanprov   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count  if exclude_case !=1

             {txt}{c |} agg_im~e verify~m powtra~m disput~m donor_~m unpkf_~m roa_im~m
{hline 13}{c +}{hline 63}
agg_imp_ra~e {c |} {res}  1.0000 
{txt}verify_imp~m {c |} {res}  0.5437   1.0000 
{txt}powtran_im~m {c |} {res}  0.1922   0.3286   1.0000 
{txt}dispute_im~m {c |} {res}  0.3417   0.1720   0.3825   1.0000 
{txt}donor_implem {c |} {res}  0.2012   0.3390  -0.0092   0.0626   1.0000 
{txt}unpkf_implem {c |} {res}  0.1278   0.3728   0.4100   0.0887   0.2248   1.0000 
  {txt}roa_implem {c |} {res}  0.1557   0.2184   0.1889   0.3288   0.2066   0.0812   1.0000 
    {txt}meanprov {c |} {res}  0.0296   0.3610   0.1904   0.2812   0.3762   0.0461   0.4188 
{txt}ex_constra~7 {c |} {res}  0.1456   0.0753  -0.2216   0.0133   0.1339  -0.2241   0.2932 
{txt}conflict_t~e {c |} {res} -0.0449  -0.3088  -0.4486  -0.2207  -0.0762  -0.1611  -0.0967 
 {txt}infant_rate {c |} {res} -0.1549  -0.1385   0.1145   0.1226   0.0533   0.1984  -0.1002 
{txt}gdppc_c~1000 {c |} {res}  0.1925   0.1789   0.0972   0.1707  -0.2220  -0.1351   0.3495 
  {txt}year_count {c |} {res}  0.4742   0.1033   0.0574   0.0864   0.1635   0.0357   0.0049 

             {txt}{c |} meanprov ex_con~7 confli~e infant~e gdp~1000 year_c~t
{hline 13}{c +}{hline 54}
    meanprov {c |} {res}  1.0000 
{txt}ex_constra~7 {c |} {res}  0.1013   1.0000 
{txt}conflict_t~e {c |} {res} -0.1416   0.2278   1.0000 
 {txt}infant_rate {c |} {res} -0.1249  -0.3370  -0.4003   1.0000 
{txt}gdppc_c~1000 {c |} {res}  0.1632   0.1721   0.2250  -0.4006   1.0000 
  {txt}year_count {c |} {res} -0.0306   0.1862   0.0169  -0.1312   0.1108   1.0000 
{txt}
{com}. 
. 
. xtgls agg_imp_rate_woe powtran_implem year_count  if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       322
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}        3{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 9.470588
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}2{txt}){col 67}=  {res}   273.54
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}agg_imp_rate~e{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
powtran_implem {c |}{col 16}{res}{space 2} 4.031899{col 28}{space 2} .6716152{col 39}{space 1}    6.00{col 48}{space 3}0.000{col 56}{space 4} 2.715557{col 69}{space 3}  5.34824
{txt}{space 4}year_count {c |}{col 16}{res}{space 2} 4.004402{col 28}{space 2} .2873559{col 39}{space 1}   13.94{col 48}{space 3}0.000{col 56}{space 4} 3.441194{col 69}{space 3} 4.567609
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} 34.70551{col 28}{space 2} 1.990106{col 39}{space 1}   17.44{col 48}{space 3}0.000{col 56}{space 4} 30.80497{col 69}{space 3} 38.60605
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. xtgls agg_imp_rate_woe dispute_implem  year_count  if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       322
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}        3{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 9.470588
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}2{txt}){col 67}=  {res}   287.28
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 15}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}agg_imp_rate~e{col 16}{c |}      Coef.{col 28}   Std. Err.{col 40}      z{col 48}   P>|z|{col 56}     [95% Con{col 69}f. Interval]
{hline 15}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
dispute_implem {c |}{col 16}{res}{space 2}  4.75646{col 28}{space 2} .6985368{col 39}{space 1}    6.81{col 48}{space 3}0.000{col 56}{space 4} 3.387353{col 69}{space 3} 6.125567
{txt}{space 4}year_count {c |}{col 16}{res}{space 2}  4.09258{col 28}{space 2}  .279524{col 39}{space 1}   14.64{col 48}{space 3}0.000{col 56}{space 4} 3.544723{col 69}{space 3} 4.640437
{txt}{space 9}_cons {c |}{col 16}{res}{space 2} 32.24419{col 28}{space 2} 2.017864{col 39}{space 1}   15.98{col 48}{space 3}0.000{col 56}{space 4} 28.28925{col 69}{space 3} 36.19913
{txt}{hline 15}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. xtgls agg_imp_rate_woe verify_implem  year_count  if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       322
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}        3{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 9.470588
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}2{txt}){col 67}=  {res}   378.02
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 14}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}agg_imp_rat~e{col 15}{c |}      Coef.{col 27}   Std. Err.{col 39}      z{col 47}   P>|z|{col 55}     [95% Con{col 68}f. Interval]
{hline 14}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
verify_implem {c |}{col 15}{res}{space 2} 8.410798{col 27}{space 2} .7939667{col 38}{space 1}   10.59{col 47}{space 3}0.000{col 55}{space 4} 6.854651{col 68}{space 3} 9.966944
{txt}{space 3}year_count {c |}{col 15}{res}{space 2} 3.419617{col 27}{space 2} .2635069{col 38}{space 1}   12.98{col 47}{space 3}0.000{col 55}{space 4} 2.903153{col 68}{space 3} 3.936081
{txt}{space 8}_cons {c |}{col 15}{res}{space 2} 28.92335{col 27}{space 2} 2.270414{col 38}{space 1}   12.74{col 47}{space 3}0.000{col 55}{space 4} 24.47342{col 68}{space 3} 33.37328
{txt}{hline 14}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. xtgls agg_imp_rate_woe verify_implem  powtran_implem dispute_implem unpkf_implem  roa_implem  meanprov    year_count gdppc_currus_1000 if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       303
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}        9{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 8.911765
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}8{txt}){col 67}=  {res}   549.86
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} agg_imp_rate_woe{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}verify_implem {c |}{col 19}{res}{space 2} 10.13993{col 31}{space 2} .8561239{col 42}{space 1}   11.84{col 51}{space 3}0.000{col 59}{space 4}  8.46196{col 72}{space 3}  11.8179
{txt}{space 3}powtran_implem {c |}{col 19}{res}{space 2} 1.506603{col 31}{space 2} .7228279{col 42}{space 1}    2.08{col 51}{space 3}0.037{col 59}{space 4} .0898862{col 72}{space 3}  2.92332
{txt}{space 3}dispute_implem {c |}{col 19}{res}{space 2} 3.472029{col 31}{space 2} .7323169{col 42}{space 1}    4.74{col 51}{space 3}0.000{col 59}{space 4} 2.036715{col 72}{space 3} 4.907344
{txt}{space 5}unpkf_implem {c |}{col 19}{res}{space 2}-2.674837{col 31}{space 2} .7316136{col 42}{space 1}   -3.66{col 51}{space 3}0.000{col 59}{space 4}-4.108774{col 72}{space 3}-1.240901
{txt}{space 7}roa_implem {c |}{col 19}{res}{space 2} 2.000214{col 31}{space 2} .7824639{col 42}{space 1}    2.56{col 51}{space 3}0.011{col 59}{space 4} .4666128{col 72}{space 3} 3.533815
{txt}{space 9}meanprov {c |}{col 19}{res}{space 2}-1.595016{col 31}{space 2} .2785508{col 42}{space 1}   -5.73{col 51}{space 3}0.000{col 59}{space 4}-2.140965{col 72}{space 3}-1.049066
{txt}{space 7}year_count {c |}{col 19}{res}{space 2} 3.367569{col 31}{space 2} .2470275{col 42}{space 1}   13.63{col 51}{space 3}0.000{col 59}{space 4} 2.883404{col 72}{space 3} 3.851734
{txt}gdppc_currus_1000 {c |}{col 19}{res}{space 2}  .028673{col 31}{space 2}  .120454{col 42}{space 1}    0.24{col 51}{space 3}0.812{col 59}{space 4}-.2074126{col 72}{space 3} .2647586
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 21.05225{col 31}{space 2} 2.397234{col 42}{space 1}    8.78{col 51}{space 3}0.000{col 59}{space 4} 16.35376{col 72}{space 3} 25.75075
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. xtgls agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  meanprov   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count  if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       303
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}       13{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 8.911765
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}12{txt}){col 67}=  {res}   604.28
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} agg_imp_rate_woe{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}verify_implem {c |}{col 19}{res}{space 2} 9.840579{col 31}{space 2} .8688895{col 42}{space 1}   11.33{col 51}{space 3}0.000{col 59}{space 4} 8.137587{col 72}{space 3} 11.54357
{txt}{space 3}powtran_implem {c |}{col 19}{res}{space 2}  2.16131{col 31}{space 2} .6777409{col 42}{space 1}    3.19{col 51}{space 3}0.001{col 59}{space 4} .8329621{col 72}{space 3} 3.489658
{txt}{space 3}dispute_implem {c |}{col 19}{res}{space 2} 3.874413{col 31}{space 2} .7423234{col 42}{space 1}    5.22{col 51}{space 3}0.000{col 59}{space 4} 2.419486{col 72}{space 3}  5.32934
{txt}{space 5}donor_implem {c |}{col 19}{res}{space 2} 2.979475{col 31}{space 2} .7293124{col 42}{space 1}    4.09{col 51}{space 3}0.000{col 59}{space 4} 1.550049{col 72}{space 3} 4.408901
{txt}{space 5}unpkf_implem {c |}{col 19}{res}{space 2}-2.691155{col 31}{space 2} .7726225{col 42}{space 1}   -3.48{col 51}{space 3}0.000{col 59}{space 4}-4.205467{col 72}{space 3}-1.176842
{txt}{space 7}roa_implem {c |}{col 19}{res}{space 2}-.4358091{col 31}{space 2}  .909437{col 42}{space 1}   -0.48{col 51}{space 3}0.632{col 59}{space 4}-2.218273{col 72}{space 3} 1.346655
{txt}{space 9}meanprov {c |}{col 19}{res}{space 2}-1.415812{col 31}{space 2}  .253109{col 42}{space 1}   -5.59{col 51}{space 3}0.000{col 59}{space 4}-1.911897{col 72}{space 3}-.9197277
{txt}{space 2}ex_constrain5_7 {c |}{col 19}{res}{space 2} 2.212541{col 31}{space 2} 1.595777{col 42}{space 1}    1.39{col 51}{space 3}0.166{col 59}{space 4}-.9151246{col 72}{space 3} 5.340206
{txt}{space 4}conflict_type {c |}{col 19}{res}{space 2} 3.766512{col 31}{space 2} 2.566151{col 42}{space 1}    1.47{col 51}{space 3}0.142{col 59}{space 4}-1.263051{col 72}{space 3} 8.796076
{txt}{space 6}infant_rate {c |}{col 19}{res}{space 2}-.0655792{col 31}{space 2} .0321746{col 42}{space 1}   -2.04{col 51}{space 3}0.042{col 59}{space 4}-.1286403{col 72}{space 3}-.0025182
{txt}gdppc_currus_1000 {c |}{col 19}{res}{space 2} .0519295{col 31}{space 2} .1103894{col 42}{space 1}    0.47{col 51}{space 3}0.638{col 59}{space 4}-.1644297{col 72}{space 3} .2682887
{txt}{space 7}year_count {c |}{col 19}{res}{space 2} 2.845015{col 31}{space 2} .2611188{col 42}{space 1}   10.90{col 51}{space 3}0.000{col 59}{space 4} 2.333232{col 72}{space 3} 3.356799
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 23.11705{col 31}{space 2}  4.20718{col 42}{space 1}    5.49{col 51}{space 3}0.000{col 59}{space 4} 14.87113{col 72}{space 3} 31.36297
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. //Appendix Replication of Model 5
. 
. //Replicate with war duration and total dead
. xtgls agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  meanprov   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count war_dur total_dead if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       303
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}       15{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 8.911765
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}14{txt}){col 67}=  {res}   619.41
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} agg_imp_rate_woe{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}verify_implem {c |}{col 19}{res}{space 2} 9.935067{col 31}{space 2} .8624706{col 42}{space 1}   11.52{col 51}{space 3}0.000{col 59}{space 4} 8.244656{col 72}{space 3} 11.62548
{txt}{space 3}powtran_implem {c |}{col 19}{res}{space 2} 2.243487{col 31}{space 2} .6712703{col 42}{space 1}    3.34{col 51}{space 3}0.001{col 59}{space 4} .9278215{col 72}{space 3} 3.559153
{txt}{space 3}dispute_implem {c |}{col 19}{res}{space 2} 3.821548{col 31}{space 2}  .748891{col 42}{space 1}    5.10{col 51}{space 3}0.000{col 59}{space 4} 2.353749{col 72}{space 3} 5.289347
{txt}{space 5}donor_implem {c |}{col 19}{res}{space 2} 3.064372{col 31}{space 2}  .735102{col 42}{space 1}    4.17{col 51}{space 3}0.000{col 59}{space 4} 1.623598{col 72}{space 3} 4.505145
{txt}{space 5}unpkf_implem {c |}{col 19}{res}{space 2}-3.147727{col 31}{space 2} .8042997{col 42}{space 1}   -3.91{col 51}{space 3}0.000{col 59}{space 4}-4.724126{col 72}{space 3}-1.571329
{txt}{space 7}roa_implem {c |}{col 19}{res}{space 2}-.6708031{col 31}{space 2} .9131182{col 42}{space 1}   -0.73{col 51}{space 3}0.463{col 59}{space 4}-2.460482{col 72}{space 3} 1.118876
{txt}{space 9}meanprov {c |}{col 19}{res}{space 2}-1.369654{col 31}{space 2} .2594379{col 42}{space 1}   -5.28{col 51}{space 3}0.000{col 59}{space 4}-1.878143{col 72}{space 3}-.8611656
{txt}{space 2}ex_constrain5_7 {c |}{col 19}{res}{space 2} 3.013305{col 31}{space 2} 1.663293{col 42}{space 1}    1.81{col 51}{space 3}0.070{col 59}{space 4}-.2466896{col 72}{space 3} 6.273301
{txt}{space 4}conflict_type {c |}{col 19}{res}{space 2} 3.135581{col 31}{space 2} 2.580276{col 42}{space 1}    1.22{col 51}{space 3}0.224{col 59}{space 4}-1.921667{col 72}{space 3} 8.192828
{txt}{space 6}infant_rate {c |}{col 19}{res}{space 2}-.0954571{col 31}{space 2} .0356482{col 42}{space 1}   -2.68{col 51}{space 3}0.007{col 59}{space 4}-.1653262{col 72}{space 3} -.025588
{txt}gdppc_currus_1000 {c |}{col 19}{res}{space 2} .1952061{col 31}{space 2} .1430918{col 42}{space 1}    1.36{col 51}{space 3}0.173{col 59}{space 4}-.0852486{col 72}{space 3} .4756608
{txt}{space 7}year_count {c |}{col 19}{res}{space 2} 2.734599{col 31}{space 2} .2684935{col 42}{space 1}   10.18{col 51}{space 3}0.000{col 59}{space 4} 2.208361{col 72}{space 3} 3.260837
{txt}{space 3}war_dur_months {c |}{col 19}{res}{space 2}-.0218647{col 31}{space 2} .0133898{col 42}{space 1}   -1.63{col 51}{space 3}0.102{col 59}{space 4}-.0481082{col 72}{space 3} .0043788
{txt}{space 7}total_dead {c |}{col 19}{res}{space 2} 5.44e-06{col 31}{space 2} 5.63e-06{col 42}{space 1}    0.97{col 51}{space 3}0.334{col 59}{space 4}-5.60e-06{col 72}{space 3} .0000165
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 27.33291{col 31}{space 2} 5.014854{col 42}{space 1}    5.45{col 51}{space 3}0.000{col 59}{space 4} 17.50398{col 72}{space 3} 37.16185
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. //Replicate with post-CPA conflict
. xtgls agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  meanprov   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count con_con if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       303
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}       14{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 8.911765
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}13{txt}){col 67}=  {res}   577.47
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} agg_imp_rate_woe{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}verify_implem {c |}{col 19}{res}{space 2} 10.16197{col 31}{space 2} .8980657{col 42}{space 1}   11.32{col 51}{space 3}0.000{col 59}{space 4} 8.401789{col 72}{space 3} 11.92214
{txt}{space 3}powtran_implem {c |}{col 19}{res}{space 2} 2.215674{col 31}{space 2} .7313141{col 42}{space 1}    3.03{col 51}{space 3}0.002{col 59}{space 4} .7823243{col 72}{space 3} 3.649023
{txt}{space 3}dispute_implem {c |}{col 19}{res}{space 2} 3.325967{col 31}{space 2} .7733716{col 42}{space 1}    4.30{col 51}{space 3}0.000{col 59}{space 4} 1.810186{col 72}{space 3} 4.841747
{txt}{space 5}donor_implem {c |}{col 19}{res}{space 2} 2.825415{col 31}{space 2} .7438655{col 42}{space 1}    3.80{col 51}{space 3}0.000{col 59}{space 4} 1.367465{col 72}{space 3} 4.283364
{txt}{space 5}unpkf_implem {c |}{col 19}{res}{space 2}-2.535531{col 31}{space 2} .7944094{col 42}{space 1}   -3.19{col 51}{space 3}0.001{col 59}{space 4}-4.092545{col 72}{space 3}-.9785169
{txt}{space 7}roa_implem {c |}{col 19}{res}{space 2} .2827171{col 31}{space 2} .9336724{col 42}{space 1}    0.30{col 51}{space 3}0.762{col 59}{space 4}-1.547247{col 72}{space 3} 2.112681
{txt}{space 9}meanprov {c |}{col 19}{res}{space 2}-1.398672{col 31}{space 2} .2679916{col 42}{space 1}   -5.22{col 51}{space 3}0.000{col 59}{space 4}-1.923926{col 72}{space 3}-.8734181
{txt}{space 2}ex_constrain5_7 {c |}{col 19}{res}{space 2} 1.229234{col 31}{space 2} 1.634244{col 42}{space 1}    0.75{col 51}{space 3}0.452{col 59}{space 4}-1.973825{col 72}{space 3} 4.432292
{txt}{space 4}conflict_type {c |}{col 19}{res}{space 2} 2.178244{col 31}{space 2} 2.816912{col 42}{space 1}    0.77{col 51}{space 3}0.439{col 59}{space 4}-3.342801{col 72}{space 3} 7.699289
{txt}{space 6}infant_rate {c |}{col 19}{res}{space 2}-.0445138{col 31}{space 2} .0351723{col 42}{space 1}   -1.27{col 51}{space 3}0.206{col 59}{space 4}-.1134504{col 72}{space 3} .0244227
{txt}gdppc_currus_1000 {c |}{col 19}{res}{space 2} .1196012{col 31}{space 2} .1250755{col 42}{space 1}    0.96{col 51}{space 3}0.339{col 59}{space 4}-.1255422{col 72}{space 3} .3647446
{txt}{space 7}year_count {c |}{col 19}{res}{space 2} 2.782475{col 31}{space 2}  .269923{col 42}{space 1}   10.31{col 51}{space 3}0.000{col 59}{space 4} 2.253436{col 72}{space 3} 3.311515
{txt}{space 5}con_conflict {c |}{col 19}{res}{space 2}-3.297005{col 31}{space 2} 1.779656{col 42}{space 1}   -1.85{col 51}{space 3}0.064{col 59}{space 4}-6.785067{col 72}{space 3} .1910571
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 21.72121{col 31}{space 2} 4.357726{col 42}{space 1}    4.98{col 51}{space 3}0.000{col 59}{space 4} 13.18022{col 72}{space 3} 30.26219
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. 
. 
. //Figure 1 Coefficient Plots
. 
. quietly  xtgls agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  meanprov   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count  if exclude_case !=1, corr(psar1)
{txt}
{com}. 
. coefplot, xline(0) drop(_cons) omitted base ///
> groups(headroom verify_implem  powtran_implem dispute_implem = "{c -(}bf:Ownership Effects{c )-}" ///
> donor_implem  unpkf_implem roa_implem  total_prov_woe   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count  = "{c -(}bf:Control Effects{c )-}", labcolor(dark green))
{res}{p 0 4 2}
{txt}(note:  named style
dark green not found in class
color,  default attributes used)
{p_end}
{res}{txt}
{com}. 
. 
. //Figure 2 actual and predicted rate
. xtgls agg_imp_rate_woe verify_implem  powtran_implem dispute_implem donor_implem  unpkf_implem roa_implem  meanprov   ex_constrain5_7 conflict_type infant_rate gdppc_currus_1000    year_count  if exclude_case !=1, corr(psar1)

{txt}Cross-sectional time-series FGLS regression

Coefficients:  {res}generalized least squares
{txt}Panels:        {res}homoskedastic
{txt}Correlation:   {res}panel-specific AR(1)

{txt}Estimated covariances{col 28}= {res}        1{txt}{col 49}Number of obs{col 67}= {res}       303
{txt}Estimated autocorrelations{col 28}= {res}       34{txt}{col 49}Number of groups{col 67}= {res}        34
{txt}Estimated coefficients{col 28}= {res}       13{txt}{col 49}Obs per group:
{col 63}min{col 67}= {res}         2
{txt}{col 63}avg{col 67}=  {res} 8.911765
{txt}{col 63}max{col 67}= {res}        10
{txt}{col 49}Wald chi2({res}12{txt}){col 67}=  {res}   604.28
{txt}{col 49}Prob > chi2{col 67}= {res}    0.0000

{txt}{hline 18}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1} agg_imp_rate_woe{col 19}{c |}      Coef.{col 31}   Std. Err.{col 43}      z{col 51}   P>|z|{col 59}     [95% Con{col 72}f. Interval]
{hline 18}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 4}verify_implem {c |}{col 19}{res}{space 2} 9.840579{col 31}{space 2} .8688895{col 42}{space 1}   11.33{col 51}{space 3}0.000{col 59}{space 4} 8.137587{col 72}{space 3} 11.54357
{txt}{space 3}powtran_implem {c |}{col 19}{res}{space 2}  2.16131{col 31}{space 2} .6777409{col 42}{space 1}    3.19{col 51}{space 3}0.001{col 59}{space 4} .8329621{col 72}{space 3} 3.489658
{txt}{space 3}dispute_implem {c |}{col 19}{res}{space 2} 3.874413{col 31}{space 2} .7423234{col 42}{space 1}    5.22{col 51}{space 3}0.000{col 59}{space 4} 2.419486{col 72}{space 3}  5.32934
{txt}{space 5}donor_implem {c |}{col 19}{res}{space 2} 2.979475{col 31}{space 2} .7293124{col 42}{space 1}    4.09{col 51}{space 3}0.000{col 59}{space 4} 1.550049{col 72}{space 3} 4.408901
{txt}{space 5}unpkf_implem {c |}{col 19}{res}{space 2}-2.691155{col 31}{space 2} .7726225{col 42}{space 1}   -3.48{col 51}{space 3}0.000{col 59}{space 4}-4.205467{col 72}{space 3}-1.176842
{txt}{space 7}roa_implem {c |}{col 19}{res}{space 2}-.4358091{col 31}{space 2}  .909437{col 42}{space 1}   -0.48{col 51}{space 3}0.632{col 59}{space 4}-2.218273{col 72}{space 3} 1.346655
{txt}{space 9}meanprov {c |}{col 19}{res}{space 2}-1.415812{col 31}{space 2}  .253109{col 42}{space 1}   -5.59{col 51}{space 3}0.000{col 59}{space 4}-1.911897{col 72}{space 3}-.9197277
{txt}{space 2}ex_constrain5_7 {c |}{col 19}{res}{space 2} 2.212541{col 31}{space 2} 1.595777{col 42}{space 1}    1.39{col 51}{space 3}0.166{col 59}{space 4}-.9151246{col 72}{space 3} 5.340206
{txt}{space 4}conflict_type {c |}{col 19}{res}{space 2} 3.766512{col 31}{space 2} 2.566151{col 42}{space 1}    1.47{col 51}{space 3}0.142{col 59}{space 4}-1.263051{col 72}{space 3} 8.796076
{txt}{space 6}infant_rate {c |}{col 19}{res}{space 2}-.0655792{col 31}{space 2} .0321746{col 42}{space 1}   -2.04{col 51}{space 3}0.042{col 59}{space 4}-.1286403{col 72}{space 3}-.0025182
{txt}gdppc_currus_1000 {c |}{col 19}{res}{space 2} .0519295{col 31}{space 2} .1103894{col 42}{space 1}    0.47{col 51}{space 3}0.638{col 59}{space 4}-.1644297{col 72}{space 3} .2682887
{txt}{space 7}year_count {c |}{col 19}{res}{space 2} 2.845015{col 31}{space 2} .2611188{col 42}{space 1}   10.90{col 51}{space 3}0.000{col 59}{space 4} 2.333232{col 72}{space 3} 3.356799
{txt}{space 12}_cons {c |}{col 19}{res}{space 2} 23.11705{col 31}{space 2}  4.20718{col 42}{space 1}    5.49{col 51}{space 3}0.000{col 59}{space 4} 14.87113{col 72}{space 3} 31.36297
{txt}{hline 18}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}

{com}. predict full
{txt}(option xb assumed; fitted values)
(20 missing values generated)

{com}. 
. //CAREFUL - After Collapse you will lose your data if you save and replace the existing datafile 
. collapse (mean) actual=agg_imp_rate_woe predicted=full, by(year_count)
{txt}
{com}. twoway (lfitci predicted  year_count) (scatter predicted  year_count )(scatter actual   year_count,  msymbol(Oh))
{res}{txt}
{com}.  
. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\mjoshi2\Desktop\Builtin safeguard\Data\II\replication log.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 9 Aug 2016, 14:42:49
{txt}{.-}
{smcl}
{txt}{sf}{ul off}